//
//  MyTool.h
//  shangcheng
//
//  Created by 张艳江 on 2019/5/29.
//  Copyright © 2019 张艳江. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface MyTool : NSObject

//拼接的urlStr
+ (NSString *)splicingWithUrl:(NSString *)url;

//设置label的行高
+ (void)setRowHeightWithLabel:(UILabel *)label;

//获取label的高度
+ (CGFloat)getString:(NSString *)string lineSpacing:(CGFloat)lineSpacing font:(UIFont*)font width:(CGFloat)width;

//计算文字宽度
+ (CGFloat)boundingRectWithString:(NSString *)string withHeight:(CGFloat)height withFont:(CGFloat)font;

//登录
+ (void)loginWithVc:(UIViewController *)vc;

// 时间戳转化时间
+ (NSString *)getTimeFromTimesTamp:(NSString *)timeStr;

// 有取消按钮的警示框
+ (UIAlertController *)alertTitle:(NSString *)title mesasge:(NSString *)message preferredStyle:(UIAlertControllerStyle)preferredStyle  confirmHandler:(void(^)(UIAlertAction *))confirmHandler cancleHandler:(void(^)(UIAlertAction *))cancleHandler viewController:(UIViewController *)vc;
// 警示框
+ (void)showAlertView:(NSString *)title message:(NSString *)message;

//退出登录
+ (void)logout;

// 去掉多余的0
+ (NSString *)removeFloatAllZeroByString:(NSString *)testNumber;

//修改Labl字体大小和颜色
+ (NSMutableAttributedString *)setCusstomeLable:(UILabel *)lable withTextFont:(CGFloat)textFont withRangeString:(NSString *)rangeString withColor:(UIColor *)textColor;


@end

